<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>XYChart.addInterLineLayer</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="XYChart.htm">XYChart</a>.<wbr>addInterLineLayer</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public InterLineLayer addInterLineLayer(LineObj line1, LineObj line2, int color12 [, int color21 ])
</div>
<p class="heading2">Description</p>
<div class="content">
Adds an inter-line layer the XYChart. An inter-line layer is used to fill the region between any two lines (straight lines, spline curves, step lines, etc).<br><br>
This method expects two "line" objects representing the two lines. The line objects can be obtained using <a href="LineLayer.getLine.htm">LineLayer.getLine</a> (inherited by <a href="SplineLayer.htm">SplineLayer</a> and <a href="StepLineLayer.htm">StepLineLayer</a>), <a href="TrendLayer.getLine.htm">TrendLayer.getLine</a>, and <a href="Mark.getLine.htm">Mark.getLine</a>.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>line1</td><td>(Mandatory)</td><td>An opaque line object representing the first line.</td></tr><tr><td>line2</td><td>(Mandatory)</td><td>An opaque line object representing the second line.</td></tr><tr><td>color12</td><td>(Mandatory)</td><td>The color used to fill the region of the lines when line1 > line2.</td></tr><tr><td>color21</td><td>-1</td><td>The color used to fill the region of the lines when line2 > line1. -1 means this color is the same as <b>color12</b>.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
An <a href="InterLineLayer.htm">InterLineLayer</a> object representing the inter-line layer created.
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
